package com.bite.friend.Controller;

import com.bite.friend.Service.MessageService;
import domain.PageDTO;
import domain.TableDataInfo;
import lombok.Getter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/message")
public class UserMessageController {

    @Autowired
    private MessageService messageService;
    @GetMapping("/list")
    public TableDataInfo list(PageDTO pageDTO){
        return messageService.list(pageDTO);
    }
}
